package cumeo89.chii.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window.Location;

import cumeo89.chii.client.wikt.WiktionaryTool;

public class Runner implements EntryPoint {

	public void onModuleLoad() {
		Chii chii = Chii.get();
		chii.addChiiListener(new WiktionaryTool());
		String page = Location.getQueryString();
		if (page.length() > 0) {
			page = page.substring(1);
		} else {
			page = "set";
		}
		chii.load(page, null);
	}

}
